import { createApp } from "vue";

import App from "./App.vue";

import router from "./router";

//路由守卫
import "./guard";

//面包屑组件
import breadCrumb from "./components/breadCrumb/index.vue";

//eventBus
import bus from "./utils/bus";

let app = createApp(App);
//注册全局组件,所有的组件里面不需要引入都可以使用
app.component("breadCrumb", breadCrumb);

// 将bus添加到全局
app.config.globalProperties.$bus = bus;
app.use(router);

app.mount("#app");
